Python 3.7:在 Windows 10 上安裝 pycurl (Python 3.7: pycurl installation on Windows 10)


問題描述

Python 3.7:在 Windows 10 上安裝 pycurl (Python 3.7: pycurl installation on Windows 10)

我一直在嘗試安裝 pycurl,但一直出現以下錯誤。

C:\>pip install pycurl
Collecting pycurl
Using cached https://files.pythonhosted.org/packages/e1/e2/xxx/pycurl‑7.43.0.2.tar.gz
Complete output from command python setup.py egg_info:
Please specify ‑‑curl‑dir=/path/to/built/libcurl

‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑

Command "python setup.py egg_info" failed with error code 10 in C:\Users\sabrina\AppData\Local\Temp\pip‑install‑xxx\pycurl\

C:\>
</code></pre>

這是在 Windows 10 上運行的 Python 3.7.0。

C:\>py ‑V
Python 3.7.0

我一直在尋找周圍發現了以下問題,但他使用的是 Python 2.6 pycurl 在 Windows 上安裝

我還找到了以下鏈接 https://pypi.org/project /pycurl/7.19.5.1/#files

不幸的是,二進制安裝程序只支持v3.4。

有沒有辦法讓它工作?</p >


參考解法

方法 1:

Compile pycurl for Python 3.7 manually or use unofficial binary of pycurl:

Download whl file of pycurl matching your python version and python architecture from here. Open the directory in cmd and install with pip:

pip install pycurl‑7.43.0.4‑cp37‑cp37m‑win32.whl

(by user9013730firebfm)

參考文件

  1. Python 3.7: pycurl installation on Windows 10 (CC BY‑SA 2.5/3.0/4.0)

#pycurl #Python #python-3.x






相關問題

python中的握手失敗(_ssl.c:590) (HandShake Failure in python(_ssl.c:590))

SmugMug 的變化似乎炸毀了 pysmug (changes at SmugMug appear to have blown up pysmug)

pycurl/curl 不遵循 CURLOPT_TIMEOUT 選項 (pycurl/curl not following the CURLOPT_TIMEOUT option)

需要幫助從 curl 遷移到 pycurl (need help with moving from curl to pycurl)

Tornado 的 AsyncHTTPClient 從 1.2 升級到 2.0 後不再工作 (Tornado's AsyncHTTPClient no longer works after upgrade to 2.0 from 1.2)

PyCurl 替代方案,libcurl 的 pythonic 包裝器? (PyCurl alternative, a pythonic wrapper for libcurl?)

使用 Pycurl 獲取 HTML (Getting HTML with Pycurl)

如果請求的數據有時被壓縮,有時不被壓縮,如何使用 pycurl? (how to use pycurl if requested data is sometimes gzipped, sometimes not?)

在 MacOS 上安裝 pycurl。(鏈接時 ssl 後端(無/其他)與編譯時 ssl 後端(openssl)不同) (Installing pycurl on MacOS. (link-time ssl backend (none/other) is different from compile-time ssl backend (openssl)))

Python 3.7:在 Windows 10 上安裝 pycurl (Python 3.7: pycurl installation on Windows 10)

Windows 機器在 Thonny 上安裝 pycurl 模塊 (Windows machine Installing pycurl module on Thonny)

當 python 線程在網絡調用(HTTPS)中並且發生上下文切換時會發生什麼? (What happens when the python thread is in network call(HTTPS) and the context switch happens?)







留言討論